﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;

public class Load : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        Debug.Log("App Lunch");

    }

    // Update is called once per frame
    void Update()
    {
        if (Input.anyKey) // 按任意键
        {
            // 重置游戏数据
            Data.score = 0;
            Data.life = 3;
            // 页面跳转
            /*Application.LoadLevel("game");*/
            SceneManager.LoadScene("game");
        }
    }
}
